
import request from '@/utils/request'
// 查询教师列表
export function listTeacherApi(query) {
    return request({
        url: '/edutation/teacher/list',
        method: 'get',
        params: {
            orderByColumn:'id',
            isAsc:'descending',
            ...query
        }
    })
}
// 查询教师详细
export function getTeacherApi(id) {
    return request({
        url: '/edutation/teacher/' + id,
        method: 'get'
    })
}

// 新增教师
export function addTeacherApi(data) {
    return request({
        url: '/edutation/teacher',
        method: 'post',
        data: data
    })
}

// 修改教师
export function updateTeacherApi(data) {
    return request({
        url: '/edutation/teacher',
        method: 'put',
        data: data
    })
}

// 删除教师
export function delTeacherApi(id) {
    return request({
        url: '/edutation/teacher/' + id,
        method: 'delete'
    })
}


